package com.marvels.financial.loan.api.impl;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.marvels.common.constants.MarvelsConstant;
import com.marvels.common.utils.CacheUtils;
import com.marvels.financial.funds.dao.IFundDao;
import com.marvels.financial.funds.dto.FundDTO;
import com.marvels.financial.loan.api.FinancialFundSourceApi;
import com.marvels.financial.loan.dto.FundSourceDTO;


@Service
public class FinancialFundSourceImpl implements FinancialFundSourceApi{
	
	@Autowired
	private IFundDao iFundDao;
	@Override
	public List<FundDTO>  fundSourceInfo(FundDTO fundDTO) {
		List<FundDTO> list = iFundDao.select(fundDTO);;
		/*String key=MarvelsConstant.FUND_SOURCE_LIST_KEY;
		Object object=CacheUtils.getCacheObject(key);
		if(object!=null){
			list=(List<FundDTO>)object;
		}else{
			list=iFundDao.select(fundDTO);
			CacheUtils.cacheObject(key, list);
		}*/
		return list;
	}
	
}
